package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Log  implements Serializable {
    private int logId;
    private int adminId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date logDate;
    private String logContent;
    private String logType;
    private String logIp;

    @Override
    public String toString() {
        return "Log{" +
                "logId=" + logId +
                ", adminId=" + adminId +
                ", logDate=" + logDate +
                ", logContent='" + logContent + '\'' +
                ", logType='" + logType + '\'' +
                ", logIp='" + logIp + '\'' +
                '}';
    }

    public int getLogId() {
        return logId;
    }

    public void setLogId(int logId) {
        this.logId = logId;
    }

    public int getAdminId() {
        return adminId;
    }

    public void setAdminId(int adminId) {
        this.adminId = adminId;
    }

    public Date getLogDate() {
        return logDate;
    }

    public void setLogDate(Date logDate) {
        this.logDate = logDate;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent;
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public String getLogIp() {
        return logIp;
    }

    public void setLogIp(String logIp) {
        this.logIp = logIp;
    }

    public Log() {
    }

    public Log(int logId, int adminId, Date logDate, String logContent, String logType, String logIp) {
        this.logId = logId;
        this.adminId = adminId;
        this.logDate = logDate;
        this.logContent = logContent;
        this.logType = logType;
        this.logIp = logIp;
    }
}
